package com.example.demo.service.impl.gongChang;

public class TestMain {

    public static void main(String[] args) {
        /*FactoryMethod factory = new ProductFactory();
        FactoryMethod.Product product = factory.product( FactoryMethod.EnumProductType.activityOne.getName(), "这是我");
        System.out.println(product.getProductName());*/

        FactoryMethod factory2 = new NewProductFactory();
        FactoryMethod.Product product = factory2.product( FactoryMethod.EnumProductType.activityOne.getName(), "这是我");
        System.out.println(product.getProductName());
    }
}
